OAuth2: PKCE(Proof Key for Code Exchange)#37849
Conversation
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
This comment was marked as resolved.
This comment was marked as resolved.
|
Hi @zhaohuabing, envoy/source/extensions/filters/http/oauth2/filter.cc Lines 467 to 468 in 2425431 The parameter is set by This newly introduced |
|
@denniskniep Yes, you'r right about this. The asyncGetAcessToken is triggered by the IDP's redirect after user authentication, and we can retrieve the code verifier from the cookie. I missed that - thanks for pointing it out! |
9d27608 to
6ad7158
Compare
8cc5214 to
72795d6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
should be fixed now |
a06c880 to
5ade7e5
Compare
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
5ade7e5 to
62f5537
Compare
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
|
@denniskniep @wbpcode Whenever you have a moment, could you take another look at this PR? I'd love to wrap this up soon and move on to other OAuth2 improvement tasks. Really appreciate your time - thanks! |
|
/retest |
|
ping |
wbpcode
left a comment
There was a problem hiding this comment.
LGTM. Thanks for this great contribution and sorry for the delay.
|
I think now you can ping the @phlax to merge the example PR? |
|
@wbpcode Do we need to wait until the example is updated in the bazel configuration? |
Yeah, I think so. |
|
i was hoping to do some docs cleanups before landing #38872 but i can do that in a follow up if its blocking |
|
done |
This reverts commit 7eeffc1. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
53beb52 to
69211f5
Compare
Introduced by #37849 It is clear that `code_verifier_cookie_settings_` is not set to the `FilterConfig`, and only the default is used. Commit Message: Additional Description: Risk Level: low Testing: unit test Docs Changes: Signed-off-by: Boteng Yao <boteng@google.com>
This PR introduces support for PKCE(Proof Key for Code Exchange) in the OAuth2 filter. This enhancement mitigates the risk of the authorization code interception attacks. Background: https://oauth.net/2/pkce/ RFC: [Proof Key for Code Exchange by OAuth Public Clients](https://datatracker.ietf.org/doc/html/rfc7636) Commit Message: Additional Description: Risk Level: low Testing: unit and integrate test, also manually tested with AWS cognito Docs Changes: Release Notes: Yes Platform Specific Features: [Optional Runtime guard:] [Optional Fixes envoyproxy#35230] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] CC @missBerg @arkodg @denniskniep --------- Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
) Introduced by envoyproxy#37849 It is clear that `code_verifier_cookie_settings_` is not set to the `FilterConfig`, and only the default is used. Commit Message: Additional Description: Risk Level: low Testing: unit test Docs Changes: Signed-off-by: Boteng Yao <boteng@google.com>
This PR introduces support for PKCE(Proof Key for Code Exchange) in the OAuth2 filter. This enhancement mitigates the risk of the authorization code interception attacks. Background: https://oauth.net/2/pkce/ RFC: [Proof Key for Code Exchange by OAuth Public Clients](https://datatracker.ietf.org/doc/html/rfc7636) Commit Message: Additional Description: Risk Level: low Testing: unit and integrate test, also manually tested with AWS cognito Docs Changes: Release Notes: Yes Platform Specific Features: [Optional Runtime guard:] [Optional Fixes envoyproxy#35230] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] CC @missBerg @arkodg @denniskniep --------- Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
) Introduced by envoyproxy#37849 It is clear that `code_verifier_cookie_settings_` is not set to the `FilterConfig`, and only the default is used. Commit Message: Additional Description: Risk Level: low Testing: unit test Docs Changes: Signed-off-by: Boteng Yao <boteng@google.com>
This PR introduces support for PKCE(Proof Key for Code Exchange) in the OAuth2 filter. This enhancement mitigates the risk of the authorization code interception attacks.
Background: https://oauth.net/2/pkce/
RFC: Proof Key for Code Exchange by OAuth Public Clients
Commit Message:
Additional Description:
Risk Level: low
Testing: unit and integrate test, also manually tested with AWS cognito
Docs Changes:
Release Notes: Yes
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #35230]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]
CC @missBerg @arkodg @denniskniep